export interface ApiResponse<T> {
  code: number;
  msg: string;
  data: T;
}

export interface SiteConfigData {
  site_name: string;
  short_name: string;
  mobile: string;
  adress: string;
  mail: string;
  beian: string;
  copyright: string;
  qrcode: string;
  company_name: string;
  photo: string;
  carousel: string[];
}

export interface Categories {
  id: number;
  name: string;
}

export interface IndexArticles {
  id: number;
  name: string;
  post_list: Post[];
}
export interface Post {
  id: number;
  post_title: string;
  published_time: number;
  post_content: string;
  post_excerpt: string;
  post_keywords: string;
  categories: Categories[];
}
export interface PostPage {
  total: number;
  per_page: number;
  current_page: number;
  last_page: number;
  data: Post[];
}

export interface TopDownPost {
  last_article: Post;
  next_article: Post;
}
